package com.zky.gulimall.product.dao;

import com.zky.gulimall.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zky.gulimall.product.vo.SpuItemAttrGroupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 属性分组
 * 
 * @author zky
 * @email 574096634@qq.com
 * @date 2022-08-17 21:28:48
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {
    //查出当前spu对应的所有属性分组信息以及当前分组下的所有属性对应的值
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
